<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/jsp/common/_includes.jsp" %>
<jsp:include page="/WEB-INF/jsp/common/_head.jsp"></jsp:include>
<div class="ui grid">
	<div class="row">
		<div class="column">
			<div class="ui two column grid">
				<div class="three wide column">
					<jsp:include page="/WEB-INF/jsp/common/_sidebar.jsp">
						<jsp:param name="index" value="10"/>
					</jsp:include>
				</div>
				<div id="container" class="thirteen wide column">
					<div class="alert alert-success w200 center-block text-center " style="display: none; " role="alert"></div>
					<ol class="breadcrumb">
						<li><a href="/">后台管理</a></li>
						<li><a href="/links">导航管理</a></li>
						<li><a href="/links">友情链接导航管理</a></li>
						<li class="active">编辑链接</li>
					</ol>
					<form:form cssClass="form-horizontal" id="addForm" method="POST" modelAttribute="links" action="/links/${links.id}/edit">
						<div class="form-group">
							<label class="col-sm-3 control-label">链接名称</label>
							<div class="col-sm-5 desc">
								<form:input path="name" cssClass="form-control" id="js_linkName" placeholder="输入链接名称" />
								<i class="icon-ok-sign out"></i>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">链接地址</label>
							<div class="col-sm-5 desc">
								<form:input path="link" cssClass="form-control" id="js_link" placeholder="输入链接地址" />
								<i class="icon-ok-sign out"></i>
							</div>
						</div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否新窗口打开</label>
                            <div class="col-sm-5 desc">
								<form:select cssClass="form-control" path="tank" id="js_tank">
									<option value="">请选择</option>
									<form:option value="1">是</form:option>
									<form:option value="0">否</form:option>
								</form:select>
                            </div>
                        </div>
						<div class="form-group" id="js_submit">
							<div class="col-sm-offset-3 col-sm-2">
								<button type="submit" class="btn btn-success">提交</button>
							</div>
						</div>
					</form:form>
				</div>
			</div>
		</div>
	</div>
</div>
<jsp:include page="/WEB-INF/jsp/common/_foot.jsp"></jsp:include>
<script type="text/javascript" src="/static/vendor/jquery.validate/jquery.validate.js"></script>
<script type="text/javascript" src="/static/vendor/jquery.validate/jquery.validate.messages_cn.js"></script>
<script type="text/javascript" src="/static/js/links/add.js"></script>
